<?php

namespace App\VO\UserBalance;

use App\VO\AListBaseVO;
use App\VO\UserBalance\MetaInfo\TransactionRecordInfo;

class UserBalanceRecordVO extends AListBaseVO
{
    /**
     * @var TransactionSearchInfo
     */
    public $search;

    /**
     * @var TransactionRecordInfo[]
     */
    public $records = [];

    /**
     * @param TransactionSearchInfo $search
     */
    public function setSearch(TransactionSearchInfo $search): void
    {
        $this->search = $search;
    }

    /**
     * @param TransactionRecordInfo $recordInfo
     */
    public function addRecord(TransactionRecordInfo $recordInfo)
    {
        $this->records[] = $recordInfo;
        $this->count++;
    }
}
